import Layout from "@/layout";

const commodityRouter = {
  path: "/commodity/standard",
  component: Layout,
  redirect: "noRedirect",
  name: "commodity",
  alwaysShow: true,
  hidden: false,
  meta: {
    title: "商品管理",
    abbre: "商品",
    icon: "left_menu_commodity",
    navigation: "/commodity",
    id: "407"
  },
  children: [
    {
      path: "/commodity/standard",
      component: () => import("@/views/commodity/standard"),
      name: "commodity_standard",
      hidden: false,
      meta: {
        title: "标准库",
        noCache: true,
        navigation: "/commodity/standard",
        icon: "menu_big_data"
      }
    },
    {
      path: "/commodity/nostandard",
      component: () => import("@/views/commodity/nostandard"),
      name: "commodity_nostandard",
      hidden: false,
      meta: {
        title: "非标准库",
        noCache: true,
        navigation: "/commodity/nostandard",
        icon: "menu_big_data"
      }
    },
    {
      path: "/commodity/standard/add",
      component: () => import("@/views/commodity/goodsAdd"),
      name: "commodity_standard_add",
      hidden: true,
      meta: {
        title: "新增商品",
        bread: "标准库,新增商品",
        noCache: true,
        navigation: "/commodity/standard",
        icon: "menu_big_data"
      }
    },
    {
      path: "/commodity/classification",
      component: () => import("@/views/commodity/commodityClassification"),
      name: "commodity_classification",
      hidden: false,
      meta: {
        title: "商品分类",
        noCache: true,
        navigation: "/commodity/classification",
        icon: "menu_big_data"
      }
    },
    {
      path: "/commodity/supporting",
      component: () => import("@/views/commodity/commoditySupporting"),
      name: "commodity_supporting",
      hidden: false,
      meta: {
        title: "辅助资料",
        noCache: true,
        navigation: "/commodity/supporting",
        icon: "menu_big_data"
      }
    },

    {
      path: "/commodity/devlist",
      component: () => import("@/views/commodity/commodityDevlist"),
      name: "commodity_devlist",
      hidden: false,
      meta: {
        title: "设备清单",
        noCache: true,
        navigation: "/commodity/devlist",
        icon: "menu_big_data"
      }
    },
    {
      path: "/commodity/devlist/add",
      component: () => import("@/views/commodity/commodityDevlist_add"),
      name: "commodity_devlist_add",
      hidden: true,
      meta: {
        title: "新增设备",
        bread: "设备清单,新增设备",
        noCache: true,
        navigation: "/commodity/devlist",
        icon: "menu_big_data"
      }
    },
    {
      path: "/commodity/devlist/edit/:id",
      component: () => import("@/views/commodity/commodityDevlist_edit"),
      name: "commodity_devlist_edit",
      hidden: true,
      meta: {
        title: "编辑设备",
        bread: "设备清单,编辑设备",
        noCache: true,
        navigation: "/commodity/devlist",
        icon: "menu_big_data"
      }
    }
    // {
    //     path: '/commodity/list',
    //     component: () =>
    //         import ('@/views/commodity/commodityList'),
    //     name: 'commodity_list',
    //     hidden:false,
    //     meta: { title: '商品列表', noCache: false,  navigation:'/commodity/list', icon: 'menu_big_data'}
    // },
    // {
    //     path: '/commodity/list/add',
    //     component: () =>
    //         import ('@/views/commodity/commodityList_add'),
    //     name: 'commodity_list_add',
    //     hidden:true,
    //     meta: { title: '新增商品', bread:'商品列表,新增商品', noCache: true,  navigation:'/commodity/list', icon: 'menu_big_data'}
    // },
    // {
    //     path: '/commodity/list/edit/:id',
    //     component: () =>
    //         import ('@/views/commodity/commodityList_edit'),
    //     name: 'commodity_list_edit',
    //     hidden:true,
    //     meta: { title: '编辑商品', bread:'商品列表,编辑商品', noCache: true,  navigation:'/commodity/list', icon: 'menu_big_data'}
    // },
    // {
    //     path: '/commodity/pricing',
    //     component: () =>
    //         import ('@/views/commodity/commodityPricing'),
    //     name: 'commodity_pricing',
    //     hidden:false,
    //     meta: { title: 'SKU维护', noCache: false,  navigation:'/commodity/pricing', icon: 'menu_big_data' }
    // },
    // {
    //     path: '/commodity/pricing/edit/:id',
    //     component: () =>
    //         import ('@/views/commodity/commodityPricing_edit'),
    //     name: 'commodity_pricing_edit',
    //     hidden:true,
    //     meta: { title: 'SKU编辑', bread:'SKU维护,SKU编辑', noCache: true,  navigation:'/commodity/pricing', icon: 'menu_big_data' }
    // },
    // {
    //     path: '/commodity/pricing/record',
    //     component: () =>
    //         import ('@/views/commodity/commodityPricing_record'),
    //     name: 'commodity_pricing_record',
    //     hidden:true,
    //     meta: { title: '操作记录', bread:'SKU维护,操作记录', noCache: true,  navigation:'/commodity/pricing', icon: 'menu_big_data' }
    // },

    // {
    //     path: '/commodity/classification/import',
    //     component: () =>
    //         import ('@/views/commodity/commodityClassificationImport'),
    //     name: 'commodity_classification_import',
    //     hidden:true,
    //     meta: { title: '导入分类', bread:'商品分类,导入分类', noCache: true,  navigation:'/commodity/classification', icon: 'menu_big_data'}
    // },

    // {
    //     path: '/commodity/supporting/import',
    //     component: () =>
    //         import ('@/views/commodity/commoditySupportingImport'),
    //     name: 'commodity_supporting_import',
    //     hidden:true,
    //     meta: { title: '导入标签', bread:'辅助资料,导入标签', noCache: true,  navigation:'/commodity/supporting', icon: 'menu_big_data'}
    // },{
    //     path: '/commodity/gallery',
    //     component: () =>
    //         import ('@/views/commodity/commodityGallery'),
    //     name: 'commodity_gallery',
    //     hidden:false,
    //     meta: { title: '云商品库', noCache: false,  navigation:'/commodity/gallery', icon: 'menu_big_data'}
    // },{
    //     path: '/commodity/gallery/see/:type/:id',
    //     component: () =>
    //         import ('@/views/commodity/commodityGallery_see'),
    //     name: 'commodity_gallery_see',
    //     hidden: true,
    //     meta: { title: '云商品库详情', bread:'云商品库,云商品库详情', noCache: true,  navigation:'/commodity/gallery', icon: 'menu_big_data'}
    // },
  ]
};

export default commodityRouter;
